package kr.hkit.powerjava.chapter05.work;

import java.util.Scanner;

public class Programming05 {
	public static void main(String[] args){
		int length; 
		int width;
		int height;
		int volume;
		boolean judge;
		
		Scanner input = new Scanner(System.in);
		System.out.print("길이를 입력하세요 : ");
		length = input.nextInt();
		System.out.print("너비를 입력하세요 : ");
		width = input.nextInt();
		System.out.print("높이를 입력하세요 : ");
		height = input.nextInt();
		
		judge = (length <=100 && width<=100 && height <=100);
		volume = length * width * height;
		
		if(judge)
		System.out.println("상자의 체적은 : "+volume+" 입니다");
		else
		System.out.println("길이는 100을 넘을 수 없습니다");
	}
}
